package com.dobby.logger.business.service.impl;

import com.dobby.logger.business.dao.BizLogDao;
import com.dobby.logger.business.entity.BizLog;
import com.dobby.logger.business.service.BizLogService;
import com.dobby.logger.common.OpenPage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by liguoqing on 2016/3/7.
 */
@Service("bizLogService")
public class BizLogServiceImpl implements BizLogService {

    @Autowired
    private BizLogDao bizLogDao;

    @Override
    public String save(BizLog bizLog) {
        return bizLogDao.save(bizLog);
    }

    @Override
    public String delete(String id) {
        return bizLogDao.delete(id);
    }

    @Override
    public String delete(List<String> ids) {
        return bizLogDao.delete(ids);
    }

    @Override
    public String update(BizLog bizLog) {
        return bizLogDao.update(bizLog);
    }

    @Override
    public BizLog getById(String id) {
        return bizLogDao.getById(id);
    }

    @Override
    public List<BizLog> getByIds(List<String> ids) {
        return bizLogDao.getByIds(ids);
    }

    @Override
    public OpenPage<BizLog> get(Map<String, String> conditionMap, OpenPage<BizLog> openPage) {
        return bizLogDao.get(conditionMap, openPage);
    }

    @Override
    public boolean checkDuplicate(String code) {
        return false;
    }
}
